// 标签 item
interface TabItem {
  id: number,
  name: string,
  icon: any,
  title: string,
  to: string
}
const icon_shouyedianji = new URL(
  "@/assets/newui/tabbar/icon_shouyedianji@2x.png",
  import.meta.url
).href;
const icon_shouyeweidianji = new URL(
  "@/assets/newui/tabbar/icon_shouyeweidianji@2x.png",
  import.meta.url
).href;
const icon_shangpindianji = new URL(
  "@/assets/newui/tabbar/icon_shangpindianji@2x.png",
  import.meta.url
).href;
const icon_shangpinweidianji = new URL(
  "@/assets/newui/tabbar/icon_shangpinweidianji@2x.png",
  import.meta.url
).href;
const icon_gongyingshangdianji = new URL(
  "@/assets/newui/tabbar/icon_gongyingshangdianji@2x.png",
  import.meta.url
).href;
const icon_gongyingshangweidianji = new URL(
  "@/assets/newui/tabbar/icon_gongyingshangweidianji@2x.png",
  import.meta.url
).href;
const icon_shenpidianji = new URL(
  "@/assets/newui/tabbar/icon_shenpidianji@2x.png",
  import.meta.url
).href;
const icon_shenpiweidianji = new URL(
  "@/assets/newui/tabbar/icon_shenpiweidianji@2x.png",
  import.meta.url
).href;
const icon_wodeweidianji = new URL(
  "@/assets/newui/tabbar/icon_wodeweidianji.png",
  import.meta.url
).href;
const icon_wodedianji = new URL(
  "@/assets/newui/tabbar/icon_wodedianji.png",
  import.meta.url
).href;

// 标签坞列表
export const TABBAR_LIST: TabItem[] = [
  {
    id: 1, name: 'home', icon: {
      active: icon_shouyedianji,
      inactive: icon_shouyeweidianji,
    }, title: '首页', to: '/home/index'
  },
  {
    id: 1, name: 'productList', icon: {
      active: icon_shangpindianji,
      inactive: icon_shangpinweidianji,
    }, title: '商品', to: '/productList'
  },
  {
    id: 3, name: 'supplierList', icon: {
      active: icon_gongyingshangdianji,
      inactive: icon_gongyingshangweidianji,
    }, title: '供应商', to: '/supplierList'
  },
  {
    id: 4, name: 'Profile', icon: {
      active: icon_wodedianji,
      inactive: icon_wodeweidianji,
    }, title: '我的', to: '/home/profile'
  },
  // {
  //   id: 4, name: 'productSelection', icon: {
  //     active: icon_shenpidianji,
  //     inactive: icon_shenpiweidianji,
  //   }, title: '审批', to: '/productSelection'
  // },
]

// 产品部标签坞列表
export const PRODUCT_TABBAR_LIST: TabItem[] = [
  { id: 1, name: 'productHome', icon: {active: 'icon_shouyeweidianji',inactive:'icon_shouyedianji2',}, title: '首页', to: '/productHome/page' },
  { id: 1, name: 'productLists', icon:{active: 'icon_shangpinweidianji',inactive:'icon_shangpindianji2',}, title: '商品', to: '/productHome/productLists' },
  { id: 3, name: 'revenue', icon:{active: 'icon_liushuidianji',inactive:'icon_liushuidianji2',}, title: '流水', to: '/productHome/revenue' },
  { id: 4, name: 'productMine', icon:{active: 'icon_wodeweidianji',inactive:'icon_wodedianji',}, title: '我的', to: '/productHome/productMine' },
]

// 运营部标签坞列表
export const OPERATION_TABBAR_LIST: TabItem[] = [
  { id: 1, name: 'operatepage', icon: 'icon_shouye', title: '首页', to: '/operation/operatepage' },
  { id: 1, name: 'selectedProducts', icon: 'icon_yixuanpin', title: '选品出库', to: '/operation/selectedProducts' },
  { id: 3, name: 'salesList', icon: 'icon_shoumailiebiao', title: '售卖列表', to: '/operation/salesList' },
  { id: 4, name: 'operateMine', icon: 'icon_wode', title: '我的', to: '/operation/operateMine' },
]

// 选品官标签坞列表
export const SELECTION_OFFICER_LIST: TabItem[] = [
  { id: 1, name: 'selection', icon: 'icon_shouye', title: '首页', to: '/selection/selectionOfficer' },
  { id: 1, name: 'selectionProducts', icon: 'icon_yixuanpin', title: '选品出库', to: '/selection/selectionProducts' },
  { id: 3, name: 'selectionSalesList', icon: 'icon_shoumailiebiao', title: '售卖列表', to: '/selection/selectionSalesList' },
  { id: 4, name: 'selectionOperateMine', icon: 'icon_wode', title: '我的', to: '/selection/selectionOperateMine' },
]

// ios专用审核列表
export const IOS_TABBAR_LIST: TabItem[] = [
  { id: 1, name: 'forgeHome', icon: 'icon_shouye', title: '首页', to: '/forge/forgeHome' },
  { id: 1, name: 'forgeAdd', icon: 'icon_shangpin', title: '新增商品', to: '/forge/forgeAdd' },
  { id: 3, name: 'forgeMy', icon: 'user', title: '我的', to: '/forge/forgeMy' },
]

// 研发部标签坞列表
export const RESEARCH_TABBAR_LIST: TabItem[] = [
  { id: 1, name: 'research', icon: 'icon_shouye', title: '首页', to: '/research/researchPage' },
  { id: 1, name: 'researchLists', icon: 'icon_shangpin', title: '商品', to: '/research/researchLists' },
  { id: 3, name: 'researchRevenue', icon: 'icon_gongyingshang', title: '供应商', to: '/research/researchRevenue' },
  { id: 4, name: 'mine', icon: 'icon_wode', title: '我的', to: '/research/mine' },
]

// 调试白名单
export const DEBUG_WHITE_LIST: string[] = ['development', 'teste']

// 路由白名单
export const ROUTE_WHITE_LIST: string[] = ['Login', 'policy', 'userAgreement', 'ForgetPassword', 'Register']



